package com.example.template.mapper;

import com.example.template.common.base.BaseMapper;
import com.example.template.entity.Role;
import com.example.template.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * @className: RoleMapper
 * @description: TODO 类描述 
 * @author: Kuangkeli
 * @date: 2024/01/28 16:59
 **/

public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 根据用户ID查询所关联角色列表
     * @param userId
     * @return
     */
    UserRole findRolesByUserId(@Param("userId") long userId);

}